package sort.util;

import java.util.Random;

/**
 * Created by asus on 2017/10/8.
 */
public class RamdomUtil {
    public static int[] generateRandomArray(int n){
        int[] result = new int[n];
        Random random = new Random();

        for (int i = 0; i < n; i++)
        {
            result[i]=random.nextInt(10000);
        }
        return result;
    }
}
